html {
  font-size: 1rem;
}

body {
  margin: 0;
  font-family: Helvetica;
  background-color: #29f1c3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.row {
  width: 24rem;
  margin: .6rem 0;
  position: relative;
}

.row input {
  font-size: 1rem;
  border: 1px solid #03c9a9;
  border-radius: 4px;
  margin: 0;
  padding: .8rem 1rem;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, .25);
  width: 90%;
  box-sizing: border-box;
  color: #2e3131;
  outline: none;
  transition: all ease-in-out .2s;
}

.row label {
  position: absolute;
  left: 1rem;
  top: .8rem;
  color: #ccc;
  transition: all ease-in-out .2s;
  cursor: text;
}

h2 {
  font-size: 2rem;
  letter-spacing: .1rem;
  margin-bottom: 2rem;
}

.row input:focus {
  border: 1px solid #1ba39c;
}

.row input:focus + label {
  transform: translateX(calc(-100% - 2.5rem));
  color: #2e3131;
}

input:not(:focus):not(:placeholder-shown) + label {
  color: rgba(0, 0, 0, 0);
}

.row button {
  background: none;
  border: none;
  position: absolute;
  top: calc(50% + 1px);
  transform: translateY(-50%);
  right: calc(.5rem + 1px);
  margin: 0;
  padding: 0;
  outline: none;
  display: none;
}

.row input[type="search"]:not(:placeholder-shown) ~ button {
  display: inline-block;
}